package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
/**
 * 产品工序价格对象 t_product_progress_price
 *
 * @author xwj
 * @date 2024-08-06
 */
@TableName("t_product_progress_price")
@Data
public class ProductProgressPrice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 产品id(t_product) */
    @Excel(name = "产品id(t_product)")
    @ApiModelProperty("产品id(t_product)")
    private Long productId;

    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private Long productId2; // 产品表的id
    @TableField(exist = false)
    private String productNo;
    @TableField(exist = false)
    private Long categoryId;
    @TableField(exist = false)
    private String ancestors;

    /** 工序id(t_progress) */
    @Excel(name = "工序id(t_progress)")
    @ApiModelProperty("工序id(t_progress)")
    private Long progressId;

    @TableField(exist = false)
    private Long progressId2; // 工序表的id
    @TableField(exist = false)
    private String progressNo;
    @TableField(exist = false)
    private String progressName;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    @TableField(updateStrategy = FieldStrategy.IGNORED) // null 值做更新策略
    private Double price;

    /** 折扣 */
    @Excel(name = "折扣")
    @ApiModelProperty("折扣")
    private Double discount;

    /** 计量单位(t_product_unit) */
    @Excel(name = "计量单位(t_product_unit)")
    @ApiModelProperty("计量单位(t_product_unit)")
    private Long unitId;

    @TableField(exist = false)
    private String unitName;
    @TableField(exist = false)
    private String source;

    /** 创建人id */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /** 更新人id */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;


}
